Skip to main content

socketTimeout

Type

message

Summary

Sent when an open socket, read from socket or write to socket command halts for the time specified by the socketTimeoutInterval property.

Syntax

socketTimeout <pSocketID>

Description

Handle the socketTimeout message to take action when a socket communication has not completed within the time set by the socketTimeoutInterval.

The socketTimeout message is sent to the object whose script created the socket.

Parameters

NameTypeDescription

pSocketID

The identifier (set when you opened the socket) of the socket which had an error. : The identifier (set when you opened the socket) of the socket which had an error.

Examples

on socketTimeout theID
answer error "The connnection is not responding." \
with "Keep Trying" or "Cancel"
if it is "Cancel" then close socket theID
end socketTimeout

command: read from socket, write to socket, close socket, open socket

function: openSockets

glossary: property, socket, message, command

message: socketClosed, socketError

property: socketTimeoutInterval

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?